package com.hjd.shop.base;

import lombok.Data;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 胡江迪
 * Date: 2020/10/11 0011
 * Time: 22:45
 * Description:
 * 响应实体类
 */
@Data
public class Response<T> implements Serializable {
    private Boolean state;
    private String msg;
    private T object;
    public Response(){
    }
    public Response(Boolean state, String msg){
        this.state=state;
        this.msg=msg;
    }
    public Response(String msg){
        this.msg=msg;
    }
    public Response(Boolean state, String msg, T object){
        this.state=state;
        this.msg=msg;
        this.object=object;
    }

}
